package com.itany.boot.service;

import com.github.pagehelper.PageInfo;
import com.itany.boot.entity.Comment;
import com.itany.boot.exception.RequestParameterErrorException;

/**
 * @date 2025/10/13
 */
public interface CommentService {

    /**
     * 分页查询带审核评论
     * @param commentParam
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<Comment> findByParams(Comment commentParam, String pageNo, String pageSize);

    /**
     *根据id精确查询
     * @param id
     * @return
     * @throws RequestParameterErrorException
     */
    Comment findById(String id) throws RequestParameterErrorException;



    /**
     * 评论审核通过或禁用
     * @param id
     * @param status
     * @throws RequestParameterErrorException
     */
    void modifyStatus(String id,String status) throws RequestParameterErrorException;

}
